#ifndef _CVP_H_
#define _CVP_H_


#define PLAINTEXT	0x80 /**< PIN presentation plain text by the external pinpad */
#define ENCIPHERED	0x88 /**< PIN presentation enciphered by the external pinpad */
#define CVP_OK		0
#define CVP_KO		-1
/*& BEGIN/SMO/ETU/04/20075/LB                                              */
#define CVP_INCORRECT_PIN	1   /**< Incorrect pincode, more tries available */
#define CVP_INCORRECT_PIN_NO_MORE	2	/**< Incorrect pincode, no more tries*/
/*& END/SMO/ETU/04/20075/LB                                                */


#define PINCODE_NOT_VERIFIED 0
#define PINCODE_CORRECT		 1
#define PINCODE_NOT_CORRECT	 2


#define  GO_TO_2			50
#define  END				51 /**< See #TAG_AUTOMATE : end */
#define  FORCAGE  			49 /**< See #TAG_AUTOMATE : forcage */

#define  NO_REMAINING_PIN	52 /**< See #TAG_AUTOMATE : no remaining pin */
#define  INPUT_PIN_OFF		53 /**< See #TAG_AUTOMATE : input pin off line */
#define  INPUT_PIN_ON		54 /**< See #TAG_AUTOMATE : input pin on line */
#define  INPUT_PIN_OK		55 /**< See #TAG_AUTOMATE : input pin ok */
#define  NO_INPUT			56 /**< See #TAG_AUTOMATE : no input */
#define  PP_HS				60 /**< See #TAG_AUTOMATE : pinpad hs or absent */
#define  CANCEL_INPUT  		61 /**< See #TAG_AUTOMATE : input canceled */
#define  TO_INPUT  			62 /**< See #TAG_AUTOMATE : to input */
#define  REMOVED_CARD 		63 /**< See #TAG_AUTOMATE : card has been removed */
#define  ERROR_CARD 		64 /**< See #TAG_AUTOMATE : card error */
/*&BEGIN  FT/06/809/MA add method of bypass pin  */
#define  BYPASS 			65 /**< See #TAG_AUTOMATE : pin by pass */
/*&END  FT/06/809/MA add method of bypass pin  */

/*& BEGIN SMO/ETU/05/20026/MA : error on pincode input                                     */
#define  ERROR_INPUT		70 /**< See #TAG_AUTOMATE : input error */
/*& END SMO/ETU/05/20026/MA : error on pincode input                                     */

/*& BEGIN   SMO/ETU/04/20503/LT :   CVR initialization   */
/* byte number */
#define CVR_METHOD 1
#define CVR_CONDITION 2
#define CVR_RESULT  3

/* byte values */
#define NOT_PERFORMED 0x3F
#define UNKNOWN 0
#define FAILED  1
#define SUCCESS 2


/*& END     SMO/ETU/04/20503/LT :     */

#endif

